<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">
  <head>
	<meta name="generator" content="Hugo 0.121.1">
    
      <meta name="theme" content='FixIt v0.2.18-lts.5'>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
    <meta name="robots" content="noodp" />
    <title>ZhiLiao&#39;s Blog</title><meta name="author" content="知了">
<meta name="author-link" content="https://net.199728.xyz">
<meta name="description" content="这是我的 Hugo FixIt 网站" /><meta name="keywords" content='Hugo, FixIt' /><meta itemprop="name" content="ZhiLiao&#39;s Blog">
<meta itemprop="description" content="这是我的 Hugo FixIt 网站"><meta property="og:title" content="ZhiLiao&#39;s Blog" />
<meta property="og:description" content="这是我的 Hugo FixIt 网站" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://localhost:1313/" /><meta property="og:image" content="http://localhost:1313/logo.png" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="http://localhost:1313/logo.png" /><meta name="twitter:title" content="ZhiLiao&#39;s Blog"/>
<meta name="twitter:description" content="这是我的 Hugo FixIt 网站"/>
<meta name="application-name" content="FixIt">
<meta name="apple-mobile-web-app-title" content="FixIt"><meta name="theme-color" data-light="#f8f8f8" data-dark="#252627" content="#f8f8f8"><meta name="msapplication-TileColor" content="#da532c"><link rel="icon" href="/images/zhi.svg"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="http://localhost:1313/" /><link rel="alternate" href="/index.xml" type="application/rss+xml" title="ZhiLiao&#39;s Blog">
  <link rel="feed" href="/index.xml" type="application/rss+xml" title="ZhiLiao&#39;s Blog"><link rel="stylesheet" href="/css/style.min.css"><link rel="preload" href="/lib/fontawesome-free/all.min.css" as="style" onload="this.removeAttribute('onload');this.rel='stylesheet'">
    <noscript><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"></noscript><link rel="preload" href="/lib/animate/animate.min.css" as="style" onload="this.removeAttribute('onload');this.rel='stylesheet'">
    <noscript><link rel="stylesheet" href="/lib/animate/animate.min.css"></noscript><script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "WebSite",
    "url": "http:\/\/localhost:1313\/","inLanguage": "zh-CN","author": {
        "@type": "Person",
        "name": "知了"
      },"description": "这是我的 Hugo FixIt 网站","name": "ZhiLiao's Blog"
  }
  </script></head>
  <body data-header-desktop="sticky" data-header-mobile="auto"><script>(window.localStorage?.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('data-theme', 'dark');</script><div class="wrapper" data-page-style="narrow"><header class="desktop animate__faster" id="header-desktop">
  <div class="header-wrapper">
    <div class="header-title">
      <a href="/" title="ZhiLiao&#39;s Blog"><span id="typeit-header-desktop" class="typeit"></span></a><span class="header-subtitle"></span></div>
    <nav>
      <ul class="menu"><li class="menu-item">
              <a
                class="menu-link"
                href="/posts/"
                
                
              ><i class="fa-solid fa-archive fa-fw fa-sm" aria-hidden="true"></i> 文章</a></li><li class="menu-item">
              <a
                class="menu-link"
                href="/categories/"
                
                
              ><i class="fa-solid fa-th fa-fw fa-sm" aria-hidden="true"></i> 分类</a></li><li class="menu-item">
              <a
                class="menu-link"
                href="/tags/"
                
                
              ><i class="fa-solid fa-tags fa-fw fa-sm" aria-hidden="true"></i> 标签</a></li><li class="menu-item">
              <a
                class="menu-link"
                href="/about/"
                
                
              ><i class="fa-solid fa-address-card fa-fw fa-sm" aria-hidden="true"></i> 关于</a></li><li class="menu-item delimiter"></li><li class="menu-item search" id="search-desktop">
            <input type="text" placeholder="搜索文章标题或内容……" id="search-input-desktop">
            <a href="javascript:void(0);" class="search-button search-toggle" id="search-toggle-desktop" title="搜索">
              <i class="fa-solid fa-search fa-fw" aria-hidden="true"></i>
            </a>
            <a href="javascript:void(0);" class="search-button search-clear" id="search-clear-desktop" title="清空">
              <i class="fa-solid fa-times-circle fa-fw" aria-hidden="true"></i>
            </a>
            <span class="search-button search-loading" id="search-loading-desktop">
              <i class="fa-solid fa-spinner fa-fw fa-spin" aria-hidden="true"></i>
            </span>
          </li><li class="menu-item theme-switch" title="切换主题">
          <i class="fa-solid fa-adjust fa-fw" aria-hidden="true"></i>
        </li></ul>
    </nav>
  </div>
</header><header class="mobile animate__faster" id="header-mobile">
  <div class="header-container">
    <div class="header-wrapper">
      <div class="header-title">
        <a href="/" title="ZhiLiao&#39;s Blog"><span id="typeit-header-title-mobile" class="typeit"></span></a><span class="header-subtitle"></span></div>
      <div class="menu-toggle" id="menu-toggle-mobile">
        <span></span><span></span><span></span>
      </div>
    </div>
    <nav>
      <ul class="menu" id="menu-mobile"><li class="search-wrapper">
            <div class="search mobile" id="search-mobile">
              <input type="text" placeholder="搜索文章标题或内容……" id="search-input-mobile">
              <a href="javascript:void(0);" class="search-button search-toggle" id="search-toggle-mobile" title="搜索">
                <i class="fa-solid fa-search fa-fw" aria-hidden="true"></i>
              </a>
              <a href="javascript:void(0);" class="search-button search-clear" id="search-clear-mobile" title="清空">
                <i class="fa-solid fa-times-circle fa-fw" aria-hidden="true"></i>
              </a>
              <span class="search-button search-loading" id="search-loading-mobile">
                <i class="fa-solid fa-spinner fa-fw fa-spin" aria-hidden="true"></i>
              </span>
            </div>
            <a href="javascript:void(0);" class="search-cancel" id="search-cancel-mobile">
              取消
            </a>
          </li><li
              class="menu-item"
            ><a
                  class="menu-link"
                  href="/posts/"
                  
                  
                ><i class="fa-solid fa-archive fa-fw fa-sm" aria-hidden="true"></i> 文章</a></li><li
              class="menu-item"
            ><a
                  class="menu-link"
                  href="/categories/"
                  
                  
                ><i class="fa-solid fa-th fa-fw fa-sm" aria-hidden="true"></i> 分类</a></li><li
              class="menu-item"
            ><a
                  class="menu-link"
                  href="/tags/"
                  
                  
                ><i class="fa-solid fa-tags fa-fw fa-sm" aria-hidden="true"></i> 标签</a></li><li
              class="menu-item"
            ><a
                  class="menu-link"
                  href="/about/"
                  
                  
                ><i class="fa-solid fa-address-card fa-fw fa-sm" aria-hidden="true"></i> 关于</a></li><li class="menu-item menu-system">
          <span class="menu-system-item theme-switch" title="切换主题"><i class="fa-solid fa-adjust fa-fw" aria-hidden="true"></i></span></li>
      </ul>
    </nav>
  </div>
</header><div class="search-dropdown desktop">
    <div id="search-dropdown-desktop"></div>
  </div>
  <div class="search-dropdown mobile">
    <div id="search-dropdown-mobile"></div>
  </div><main class="container"><div class="page home posts"><div class="home-profile"><div class="home-avatar"><a href="/posts/" title="文章"><img loading="lazy" src="/images/Snipaste_2023-11-24_15-16-22.png" data-title="知了" data-alt="知了" style="background: url(/svg/loading.min.svg) no-repeat center;" onload="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}this.dataset.lazyloaded='';" onerror="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}"/></a></div><h2 class="home-subtitle"><span class="d-none">一个有趣IT知识分享的频道</span>
        <span id="typeit-profile-subtitle" class="typeit"></span></h2><div class="links"><a href="https://github.com/Lruihao" title="GitHub"target="_blank" rel="external nofollow noopener noreferrer me"><i class="fa-brands fa-github-alt fa-fw" aria-hidden="true"></i>
    </a><a href="https://qm.qq.com/cgi-bin/qm/qr?k=awbwdTtSQ_-H5QGzeJxdWgv6JMbNehNM&amp;jump_from=webapi" title="QQ Group"target="_blank" rel="external nofollow noopener noreferrer me"><i class="fa-solid fa-users" aria-hidden="true"></i>
    </a><a href="/index.xml" title="RSS"target="_blank" rel="external nofollow noopener noreferrer me"><i class="fa-solid fa-rss fa-fw" aria-hidden="true"></i>
    </a></div></div>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
    <a href="/yanzheng/">中文测试验证</a>
  </h1><div class="post-meta"><span class="post-author"><a href="https://net.199728.xyz" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><i class="fa-solid fa-user-circle" aria-hidden="true"></i>
    知了</a></span>&nbsp;<span class="post-publish" title='2023-12-25 11:28:22'>发布于 <time datetime="2023-12-25">2023-12-25</time></span></div><div class="content">test </div><div class="post-footer">
    <a href="/yanzheng/">阅读全文</a></div>
</article>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><div class="featured-image-preview">
      <a href="/hugo_set/" aria-label="hugo博客配置"><img loading="lazy" src="/hugo_set/featured-image.png" data-title="hugo博客配置" data-alt="hugo博客配置" style="background: url(/svg/loading.min.svg) no-repeat center;" onload="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}this.dataset.lazyloaded='';" onerror="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}"/></a>
    </div><h1 class="single-title" itemprop="name headline">
    <a href="/hugo_set/">hugo博客配置</a>
  </h1><div class="post-meta"><span class="post-author"><a href="https://net.199728.xyz" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><i class="fa-solid fa-user-circle" aria-hidden="true"></i>
    知了</a></span>&nbsp;<span class="post-publish" title='2023-12-22 11:00:37'>发布于 <time datetime="2023-12-22">2023-12-22</time></span></div><div class="content">这是一个摘要</div><div class="post-footer">
    <a href="/hugo_set/">阅读全文</a></div>
</article>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
    <a href="/syncthing/">syncting自建服务器配置</a>
  </h1><div class="post-meta"><span class="post-author"><a href="https://net.199728.xyz" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><i class="fa-solid fa-user-circle" aria-hidden="true"></i>
    知了</a></span>&nbsp;<span class="post-publish" title='2023-02-20 20:14:22'>发布于 <time datetime="2023-02-20">2023-02-20</time></span></div><div class="content">中继服务器和发现服务器的个人理解 中继服务器是用于建立中继控制链接的服务器，只用于控制信号的传输。私建的中继服务器会自动加入 syncthing 官网的的中继池供全部设备使用。 发现服务器是用于建立中继数据链接的服务器，经测试发现服务器和中继服务器不必安排在同一服务器中，甚至不必中继服务器。因为中继服务器只承担控制信号的传输，数据量相对较小，使用官方的中继服务器和自建的发现服务器也能达到较好的使用体验。 中继服务器 官方译文：Syncthing 依赖于社区贡献的中继服务器网络。任何人都可以运行中继服务器，它会自动加入中继池并可供 Syncthing 用户使用。
配置位置：设置——连接——“协议监听地址”配置
查看“中继服务器”运行状态：
​​​​
default 相当于（开启局域网中继 + 动态外网中继）： 1 quic://0.0.0.0:22000, tcp://0.0.0.0:22000, dynamic+https://relays.syncthing.net/endpoint 开启局域网中继 + 静态外网中继：quic://0.0.0.0:22000, tcp://0.0.0.0:22000, relay://1.94.5.8:22067/ 启用中继：可以单独控制外网中继服务器的启停，关闭时即便协议监听地址填有“外网中继服务器”，也不会启用 发现服务器 官方文档译文：Syncthing 依靠发现服务器在互联网上寻找对等点。任何人都可以运行发现服务器并将 Syncthing 安装指向它。
配置位置：设置——连接——“全局发现服务器”中配置
查看“发现服务器”运行状态：
​​​​
​​
全局发现：控制外网发现服务器的启停（如上图 global@htps://1.94.5.8:8443/） 全局发现服务器：开启“全局发现”后，可以设置外网发现服务器地址 本地发现：控制局域网发现服务器的启停（如上图 IPv4 local 和 IPv6 local） 中继服务器官方文档： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Listen Addresses The following address types are accepted in sync protocol listen addresses.</div><div class="post-footer">
    <a href="/syncthing/">阅读全文</a></div>
</article>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
    <a href="/first_post/">我的第一篇文章</a>
  </h1><div class="post-meta"><span class="post-author"><a href="https://net.199728.xyz" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><i class="fa-solid fa-user-circle" aria-hidden="true"></i>
    知了</a></span>&nbsp;<span class="post-publish" title='2023-02-20 20:14:22'>发布于 <time datetime="2023-02-20">2023-02-20</time></span></div><div class="content">syncting自建服务器配置 中继服务器和发现服务器的个人理解 中继服务器是用于建立中继控制链接的服务器，只用于控制信号的传输。私建的中继服务器会自动加入syncthing官网的的中继池供全部设备使用。 发现服务器是用于建立中继数据链接的服务器，经测试发现服务器和中继服务器不必安排在同一服务器中，甚至不必中继服务器。因为中继服务器只承担控制信号的传输，数据量相对较小，使用官方的中继服务器和自建的发现服务器也能达到较好的使用体验。 中继服务器 官方译文：Syncthing 依赖于社区贡献的中继服务器网络。任何人都可以运行中继服务器，它会自动加入中继池并可供 Syncthing 用户使用。
配置位置：设置——连接——“协议监听地址”配置
查看“中继服务器”运行状态：
11111
default相当于（开启局域网中继+动态外网中继）： 1 quic://0.0.0.0:22000, tcp://0.0.0.0:22000, dynamic+https://relays.syncthing.net/endpoint 开启局域网中继+静态外网中继： 1 quic://0.0.0.0:22000, tcp://0.0.0.0:22000, relay://1.94.5.8:22067/**** 启用中继：可以单独控制外网中继服务器的启停，关闭时即便协议监听地址填有“外网中继服务器”，也不会启用 发现服务器 官方文档译文：Syncthing 依靠发现服务器在互联网上寻找对等点。任何人都可以运行发现服务器并将 Syncthing 安装指向它。
配置位置：设置——连接——“全局发现服务器”中配置
查看“发现服务器”运行状态：
全局发现：控制外网发现服务器的启停（如上图global@htps://1.94.5.8:8443/） 全局发现服务器：开启“全局发现”后，可以设置外网发现服务器地址 本地发现：控制局域网发现服务器的启停（如上图IPv4 local和IPv6 local） 中继服务器官方文档： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Listen Addresses The following address types are accepted in sync protocol listen addresses.</div><div class="post-footer">
    <a href="/first_post/">阅读全文</a></div>
</article>
</div></main><footer class="footer">
    <div class="footer-container"><div class="footer-line powered">由 <a href="https://gohugo.io/" target="_blank" rel="external nofollow noopener noreferrer" title="Hugo 0.121.1">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/hugo-fixit/FixIt" target="_blank" rel="external" title="FixIt v0.2.18-lts.5"><img class="fixit-icon" src="/fixit.min.svg" alt="FixIt logo" />&nbsp;FixIt</a>
        </div><div class="footer-line copyright" itemscope itemtype="http://schema.org/CreativeWork"><i class="fa-regular fa-copyright fa-fw" aria-hidden="true"></i>
            <span itemprop="copyrightYear">2022 - 2023</span><span class="license footer-divider"><a rel="license external nofollow noopener noreferrer" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a></span></div><div class="footer-line statistics"></div><div class="footer-line visitor">
          <span id="busuanzi_container_site_uv" title='总访客数'><i class="fa-regular fa-user fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span></span><span id="busuanzi_container_site_pv" class="footer-divider" title='总访问量'><i class="fa-regular fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span></span>
        </div></div>
  </footer></div><div class="widgets"><div class="fixed-buttons animate__faster d-none"><div class="fixed-button back-to-top" role="button" aria-label="回到顶部"><i class="fa-solid fa-arrow-up fa-fw" aria-hidden="true"></i><span class="variant-numeric d-none">0%</span>
        </div></div><div id="mask"></div><noscript>
    <div class="noscript-warning">FixIt 主题在启用 JavaScript 的情况下效果最佳。</div>
  </noscript>
</div><link rel="preload" href="/lib/katex/katex.min.css" as="style" onload="this.removeAttribute('onload');this.rel='stylesheet'">
    <noscript><link rel="stylesheet" href="/lib/katex/katex.min.css"></noscript><link rel="stylesheet" href="/lib/cookieconsent/cookieconsent.min.css"><script src="/lib/autocomplete/autocomplete.min.js" defer></script><script src="/lib/fuse/fuse.min.js" defer></script><script src="/lib/sharer/sharer.min.js" async defer></script><script src="/lib/typeit/index.umd.js" defer></script><script src="/lib/katex/katex.min.js" defer></script><script src="/lib/katex/auto-render.min.js" defer></script><script src="/lib/katex/copy-tex.min.js" defer></script><script src="/lib/katex/mhchem.min.js" defer></script><script src="/lib/cookieconsent/cookieconsent.min.js" defer></script><script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async defer></script><script>window.config={"code":{"copyTitle":"复制到剪贴板","maxShownLines":50},"cookieconsent":{"content":{"dismiss":"同意","link":"了解更多","message":"本网站使用 Cookies 来改善您的浏览体验。"},"enable":true,"palette":{"button":{"background":"#f0f0f0"},"popup":{"background":"#1aa3ff"}},"theme":"edgeless"},"data":{"typeit-header-desktop":"ZhiLiao's Blog","typeit-header-title-mobile":"ZhiLiao's Blog","typeit-profile-subtitle":"一个有趣IT知识分享的频道"},"enablePWA":true,"math":{"delimiters":[{"display":true,"left":"$$","right":"$$"},{"display":true,"left":"\\[","right":"\\]"},{"display":true,"left":"\\begin{equation}","right":"\\end{equation}"},{"display":true,"left":"\\begin{equation*}","right":"\\end{equation*}"},{"display":true,"left":"\\begin{align}","right":"\\end{align}"},{"display":true,"left":"\\begin{align*}","right":"\\end{align*}"},{"display":true,"left":"\\begin{alignat}","right":"\\end{alignat}"},{"display":true,"left":"\\begin{alignat*}","right":"\\end{alignat*}"},{"display":true,"left":"\\begin{gather}","right":"\\end{gather}"},{"display":true,"left":"\\begin{CD}","right":"\\end{CD}"},{"display":false,"left":"$","right":"$"},{"display":false,"left":"\\(","right":"\\)"}],"strict":false},"search":{"distance":8000,"findAllMatches":true,"fuseIndexURL":"/index.json","highlightTag":"em","ignoreFieldNorm":false,"ignoreLocation":false,"isCaseSensitive":false,"location":0,"maxResultLength":100,"minMatchCharLength":2,"noResultsFound":"没有找到结果","snippetLength":500,"threshold":0.3,"type":"fuse","useExtendedSearch":false},"typeit":{"cursorChar":"|","cursorSpeed":1000,"data":{"typeit-header-desktop":["typeit-header-desktop"],"typeit-header-title-mobile":["typeit-header-title-mobile"],"typeit-profile-subtitle":["typeit-profile-subtitle"]},"duration":-1,"loop":false,"speed":100}};</script><script src="/js/theme.min.js" defer></script></body>
</html>
